package com.iims.supplier.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.supplier.domain.Supplier;

import java.util.List;

/**
 * 供应商服务
 *
 * @author fanpei
 * @date 2021/6/11 14:27
 */
public interface SupplierMapper extends BaseMapper<Supplier> {

    /**
     * 获取客户列表
     *
     * @param supplier
     * @return
     */
    List<Supplier> selectSupplierList(Supplier supplier);

    /**
     * 通过id获取详情
     *
     * @param supplierId
     * @return
     */
    Supplier selectSupplierById(Long supplierId);

    /**
     * 检查供应商使用个数
     *
     * @param supplierId
     * @return
     */
    int checkSupplierUseCount(Long supplierId);
}
